package com.kangkang.shixi;

import java.io.BufferedReader;
import java.io.FileReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class Test02_1 {
    public static void main(String[] args) {
        String filePath = "D:\\桌面文件\\高三学生成绩信息.csv";
        List<Student> lists = readCsvToList(filePath);
        System.out.println(lists.toString());
    }

    public static List<Student> readCsvToList(String filePath) {
        String line;
        List<Student> columnList = new ArrayList();
        try (BufferedReader br = new BufferedReader(new FileReader(filePath))) {
            while ((line = br.readLine()) != null) {
                System.out.println(line);
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
        return columnList;
    }
}
